﻿
<style type="text/css">
.picon_home_plus { background-image: url(/admin/html/home/plus.png) !important; }
.picon_home_minus { background-image: url(/admin/html/home/minus.png) !important; }
</style>

<script type="text/x-jquery-tmpl" id="tmpl_server_information">
    <table cellspacing="0">
{{each(index, item) items}}
        <tr>
            <td>
                <label class="name">${name}：</label>
                <label class="value">${value}</label>
            </td>
        </tr>
{{/each}}
    </table>    
</script>

<script type="text/x-jquery-tmpl" id="tmpl_contact_information">
    <table cellspacing="0">
{{each(index, item) items}}
        <tr>
            <td>
                <img src="/admin/ui/images/blank.gif" alt="" class="picon picon_${icon}" />
                <label class="name">${name}：</label>
                <label class="value">{{html value}}</label>
            </td>
        </tr>
{{/each}}
    </table>    
</script>

<script type="text/javascript">

(function () {
    var obj = {
        "tag": {
            "current": 0,
            "items": []
        },
        "iconlists": [],
        "iconlists2": []
    };
    var $tabs = UI.Tab(obj.tag);
    var $content = $tabs.find('.tabs_content');
    var $container = elements.frame.main;
    $container.append($tabs);
    $content.data('obj', obj);

    $('#frame_main >div.tabs div.tabs_title li:eq(0)').addClass('curr');

    $content.addClass("page_home");


    //联系方式
    var contact_information_data = {
        items: [
            { icon: "house", name: lan.Home.Contact.Name, value: Config_Configs.Admin.Contact.Name },
            { icon: "lorry", name: lan.Home.Contact.Address, value: Config_Configs.Admin.Contact.Address },
            { icon: "telephone", name: lan.Home.Contact.Tel, value: Config_Configs.Admin.Contact.Tel1 },
            { icon: "transmit_blue", name: lan.Home.Contact.Tel2, value: Config_Configs.Admin.Contact.Tel2 },
            { icon: "printer", name: lan.Home.Contact.Fax, value: Config_Configs.Admin.Contact.Fax },
            { icon: "world", name: lan.Home.Contact.HomePage, value: '<a href="' + Config_Configs.Admin.Contact.Home + '" target="_blank">' + Config_Configs.Admin.Contact.Home + '</a>' },
            { icon: "email_open", name: lan.Home.Contact.Email, value: Config_Configs.Admin.Contact.Email },
        ]
    }
    var contact_information_detail = $("#tmpl_contact_information").tmpl(contact_information_data);
    var contact_information_box = UI.HBox({ icon: "tag_blue", title: lan.Home.Contact.Title, "size": 5 });
    contact_information_box.find('div.home_box_detail').append(contact_information_detail);
    contact_information_box.appendTo($content);
    contact_information_box.css('margin-top', 10);

})();
</script>